package com.ysd.lis.controller;


import com.ysd.common.Result;
import com.ysd.lis.controller.pub.BaseController;
import com.ysd.lis.entity.WkEmployeeJobHistory;
import com.ysd.lis.entity.WkEmployeeProDirection;
import com.ysd.lis.service.WkEmployeeProDirectionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 * 员工档案-专业方向表 前端控制器
 * </p>
 *
 * @author LiuQi
 * @since 2024-02-23
 */
@RestController
@RequestMapping("/wk/employeeProDirection")
public class WkEmployeeProDirectionController extends BaseController {


    @Autowired
    WkEmployeeProDirectionService wkEmployeeProDirectionService;
    @GetMapping("/getEmployeeProDirectionList/{wkEmployeeId}")
    public Result getEmployeeProDirectionList(@PathVariable("wkEmployeeId") String wkEmployeeId) {
        return wkEmployeeProDirectionService.getEmployeeProDirectionList(wkEmployeeId);
    }

    @PostMapping("/addEmployeeProDirection")
    public Result addEmployeeProDirection(@RequestBody WkEmployeeProDirection wkEmployeeProDirection) {
        return wkEmployeeProDirectionService.addEmployeeProDirection(wkEmployeeProDirection);
    }

    @PostMapping("/updateEmployeeProDirection")
    public Result updateEmployeeProDirection(@RequestBody WkEmployeeProDirection wkEmployeeProDirection) {
        return wkEmployeeProDirectionService.updateEmployeeProDirection(wkEmployeeProDirection);
    }

    @PostMapping("/deleteEmployeeProDirection")
    public Result deleteEmployeeProDirection(@RequestBody WkEmployeeProDirection wkEmployeeProDirection) {
        return wkEmployeeProDirectionService.deleteEmployeeProDirection(wkEmployeeProDirection);
    }
}
